//
//  SINASelectTimeTableViewCell.m
//  PlanTech
//
//  Created by  androidlongs on 2018/6/28.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "SINASelectTimeTableViewCell.h"

@interface SINASelectTimeTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *timeNameLabel;

@end

@implementation SINASelectTimeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setString:(NSString *)string{
    _string = string;
    
    self.timeNameLabel.text = string;
    
    if (self.cellTimeClickBlock) {
        [[SINAUiviewClickLiserner alloc]viewClickFunction:self.timeNameLabel andWithBlick:^(UIView *view) {
            self.cellTimeClickBlock(string);
        }];
    }
    
}
@end
